import request from "@/utils/request";

export function searchList(params) {
  return request({
    url: "/sinohis/pension/sys/organization/page/condition",
    method: "get",

    params
  });
}
export function serchfather(params) {
  return request({
    url: "/sinohis/pension/sys/organization/searchOrganChilds/"+params.institutionNumber,
    method: "get",

    params
  });
}
export function doEdit(data) {
  return request({
    url: "/sinohis/pension/sys/organization",
    method: "post",
    data,
  });
}
export function search(params) {
  return request({
    url: "/sinohis/pension/sys/organization/page/condition",
    method: "get",
    params,
  });
}
export function save(data) {
  return request({
    url: "/sinohis/pension/sys/organization",
    method: "put",
    data,
  });
}
export function doDelete(params) {
  return request({
    url: "/sinohis/pension/sys/organization/"+params.institutionNumber,
    method: "DELETE",

  });
}
